
public class SystemTestForMemory10000 {
	public static void main(String[] args) {
		System.gc();
		Integer[] array = new Integer[10000];
		for (int i = 0;i < 10000; i++)
			array[i] = i;
		long time1 = Runtime.getRuntime().freeMemory();
		MyHashMap map = new MyHashMap(10000);
		for (int i = 0; i < 10000; i++)
			map.put(array[i], array[i]);
		long time2 = Runtime.getRuntime().freeMemory();
		System.gc();
		time1 = Runtime.getRuntime().freeMemory();
		MyHashMap map2 = new MyHashMap(10000);
		for (int i = 0; i < 10000; i++)
			map2.put(array[i], array[i]);
		time2 = Runtime.getRuntime().freeMemory();
		System.gc();
		System.out.println((time1-time2)/10000);
	}
}
